﻿package
{
	import flash.display.MovieClip;
	
	public class Anniu extends MovieClip
	{
		public var index:int = 0;
		public function Anniu()
		{
			super();
		}
		
		public function setLabel(label:String):void
		{
			this.label.text = label;
		}
		
		public function setIndex(i:int):void
		{
			index = i;
		}
		
		public function setState(state:int):void
		{
			if(currentFrame != state)
				gotoAndStop(state);
			switch(state)
			{
				case 1:
					this.label.textColor = 0x0080FF;
					break;
				case 2:
					this.label.textColor = 0x000000;
					break;
				case 3:
					this.label.textColor = 0x0080FF;
					break;
			}
		}
	}
}